package com.ruoyi.activity.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.shop.api.domain.CheShop;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 活动项目对象 che_activity
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键,自增 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 发布门店id【外键】 */
    @Excel(name = "发布门店id【外键】")
    private Long shopId;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String content;

    /** 审核状态（数字字典）（待审核、审核通过、审核不通过） */
    @Excel(name = "审核状态", readConverterExp = "数=字字典")
    private Long type;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核说明 */
    @Excel(name = "审核说明")
    private String explanation;

    /** 活动状态(数字字典)(已上架、未上架) */
    @Excel(name = "活动状态(数字字典)(已上架、未上架)")
    private Long state;

    /** 照片/视频 */
    @Excel(name = "照片/视频")
    private String photo;

    private CheShop cheShop;

}
